package com.dht.xiao.jianye.base.serialport.bean;

import java.util.List;

import com.dht.xiao.jianye.base.serialport.ServiceType;

/**
 * @author :      fangbingran
 * @aescription : todo(这里用一句话描述这个类的作用)
 * @date :        2019/06/17  08:59
 */
public class InitSerialPortBean {

    private int serviceType;
    private String deviceAddress;
    private int baudRate;
    private boolean isOpenHeart;
    private List<byte[]> heartCommand;

    /**
     * @param serviceType   选中的服务类型
     * @param deviceAddress 设备地址
     * @param baudRate      波特率
     * @param isOpenHeart   是否打开心跳
     * @param heartCommand  心跳命令
     */
    public InitSerialPortBean(@ServiceType int serviceType, String deviceAddress, int baudRate, boolean isOpenHeart, List<byte[]> heartCommand) {
        this.serviceType = serviceType;
        this.deviceAddress = deviceAddress;
        this.baudRate = baudRate;
        this.isOpenHeart = isOpenHeart;
        this.heartCommand = heartCommand;
    }

    public int getServiceType() {
        return serviceType;
    }

    public void setServiceType(int serviceType) {
        this.serviceType = serviceType;
    }

    public String getDeviceAddress() {
        return deviceAddress;
    }

    public void setDeviceAddress(String deviceAddress) {
        this.deviceAddress = deviceAddress;
    }

    public int getBaudRate() {
        return baudRate;
    }

    public void setBaudRate(int baudRate) {
        this.baudRate = baudRate;
    }

    public boolean isOpenHeart() {
        return isOpenHeart;
    }

    public void setOpenHeart(boolean openHeart) {
        isOpenHeart = openHeart;
    }

    public List<byte[]> getHeartCommand() {
        return heartCommand;
    }

    public void setHeartCommand(List<byte[]> heartCommand) {
        this.heartCommand = heartCommand;
    }
}
